From 54192d3b3659e0ef94c976c84f71f85efdb4528d Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 23 Apr 2025 14:03:50 +0200 Subject: [PATCH] luci-app-ddns: Fix multiple IP display bug Occasionally, a DNS lookup returns multiple IPs, so the best thing to do isn't to join them together as a unified string, but to separate them with an HTML
. Signed-off-by: Paul Donald --- applications/luci-app-ddns/root/usr/share/rpcd/ucode/ddns.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-ddns/root/usr/share/rpcd/ucode/ddns.uc b/applications/luci-app-ddns/root/usr/share/rpcd/ucode/ddns.uc index b339528001..ad959a447b 100644 --- a/applications/luci-app-ddns/root/usr/share/rpcd/ucode/ddns.uc +++ b/applications/luci-app-ddns/root/usr/share/rpcd/ucode/ddns.uc @@ -178,7 +178,7 @@ const methods = { } res[section] = { - ip: ip ? replace(ip, '\n', '') : null, + ip: ip ? replace(trim(ip), '\n', '
') : null, last_update: lastUpdate !== 0 ? convertedLastUpdate : null, next_update: nextUpdate || null, pid: pid || null, -- 2.30.2